package com.dyna.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.dyna.constants.DateFatter;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @description items
 * @author zcw
 * @date 2025-02-27
 */
@Data
@ApiModel("items")
public class Items implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long itemId;

    
    @ApiModelProperty("物品名称")
    private String itemName;

    
    @ApiModelProperty("物品分类")
    private Integer category;

    
    @ApiModelProperty("物品状态")
    private Integer status;

    
    @ApiModelProperty("来源类型")
    private Integer origin;

    
    @ApiModelProperty("发售日期（用于稀缺性判断）")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime releaseDate;


    @ApiModelProperty("物品库存数量")
    private Long count;


    @ApiModelProperty("封面图URL（支持实拍图）[3]()")
    private String coverImg;

    
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = DateFatter.YYYY_MM_DD_HH_MM_SS)
    private LocalDateTime createdTime;


    @ApiModelProperty(value = "删除标识", notes = "0未删除，2已删除")
    private Integer delFlag;


    public Items() {}
}